﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSedu.Model;
namespace ZSedu.Manager
{
    interface IUserManager
    {
        //增
        void Add(User user);
        //更新
        void Update(User user);
        //移除
        void Remove(User user);
        //根据id返回用户名字   
        User GetById(int id);
        //根据用户名返回用户
        User GetByUsername(string username);
        /// <summary>
        /// 获取所有用户
        /// </summary>
        /// <returns></returns>
        ICollection<User> GetAllUsers();

        /// <summary>
        ///验证用户名密码
        /// </summary>
        /// <param name="username"></param>
        /// <param name="passworld"></param>
        /// <returns></returns>
        bool VerifyUser(string username, string passworld);
    }
}
